const riskLevelObj = {
    'R1': '低风险',
    'R2': '中低风险',
    'R3': '中风险',
    'R4': '中高风险',
    'R5': '高风险',
}

const riskLevelArr = [{
    level: 'R1',
    name: '低风险'
}, {
    level: 'R2',
    name: '中低风险'
}, {
    level: 'R3',
    name: '中风险'
}, {
    level: 'R4',
    name: '中高风险'
}, {
    level: 'R5',
    name: '高风险'
}]

const publishStatusObj = {
    'NOT_YET': '未上架',
    'STARTING': '已上架',
    'END': '已下架',
}
const publishStatusArr = [{
    name: '未上架',
    status: 'NOT_YET'
}, {
    name: '已上架',
    status: 'STARTING'
}, {
    name: '已下架',
    status: 'END'
}]

const inputRule = {
    productNo: [
        { required: true, message: '请输入产品编码', trigger: 'blur' },
        { max: 30, message: '不能超过30个字符', trigger: 'blur' }
    ],
    productName: [
        { required: true, message: '请输入产品名称', trigger: 'blur' },
        { max: 30, message: '不能超过30个字符', trigger: 'blur' }
    ],

    raiseLimit: [
        { type: 'number', message: '只能填写数字', trigger: 'blur' },
        { required: true, type: 'number', message: '请输入总募集额度', trigger: 'blur' },
        { max: 9999999999, type: 'number', message: '不能超过10位数', trigger: 'blur' },
    ],
    minPurchaseAmount: [
        { type: 'number', message: '只能填写数字', trigger: 'blur' },
        { required: true, type: 'number', message: '请输入起购金额', trigger: 'blur' },
        { max: 9999999999, type: 'number', message: '不能超过10位数', trigger: 'blur' },
    ],
    issuerId: [
        { required: true, type: 'number', message: '请选择', trigger: 'change' },
    ],
    productTermStr: [
        { required: true, message: '请填写产品期限', trigger: 'blur' },
        { max: 30, message: '不能超过30个字符', trigger: 'blur' },
    ],
    riskLevel: [
        { required: true, message: '请选择', trigger: 'change' },
    ],
    label01: [
        { max: 4, message: '不能超过4个文字', trigger: 'blur' },
    ],
    label02: [
        { max: 4, message: '不能超过4个文字', trigger: 'blur' },
    ],
    label03: [
        { max: 4, message: '不能超过4个文字', trigger: 'blur' },
    ],
    label04: [
        { max: 4, message: '不能超过4个文字', trigger: 'blur' },
    ],
}


export {
    riskLevelObj,
    riskLevelArr,
    inputRule,
    publishStatusObj,
    publishStatusArr,
}